package com.thghh.gkrpc;

import com.thghh.gkrpc.codec.Decoder;
import com.thghh.gkrpc.codec.Encoder;
import com.thghh.gkrpc.codec.JSONDecoder;
import com.thghh.gkrpc.codec.JSONEncoder;
import lombok.Data;

/**
 * server配置
 *
 * @author Zhikang.Peng
 * @version 1.0
 * @email thghh@qq.com
 * @date 2020/4/13 16:07
 */
@Data
public class RpcServerConfig {
    private Class<? extends TransportServer> transportClass = HttpTransportServer.class;
    private Class<? extends Encoder> encoder = JSONEncoder.class;
    private Class<? extends Decoder> decoder = JSONDecoder.class;
    private int port = 3000;

}
